Call of function block instance in ST
Syntax |
---|
|
Meaning | |
---|---|
formal call of the →function block instance (= formal function block →call) without or with parameter list This parameter list of a formal →call may contain the following elements:
As alternatives, you can use the following variants for the call:
The FAQ article "When to use a formal call? When to use a non-formal call?" lists a table when to use formal call vs. non-formal call. |
If you want to call the body of the base function block from within a derived function block, use SUPER();
. See under "Declaration of a function block in ST" for an example.
Example |
---|
|
Examples for incomplete parameter list of formal call for a function block instance and accesses defined separately:
Syntax |
Meaning |
---|---|
|
assigning value |
|
assigning value |
|
calling the function block instance |
|
because of the read output |
|
calling the function block instance |